package com.bw.service;

import com.bw.bean.Good;
import com.bw.mapper.GoodMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 *
 * @Author: hechongshan
 * @Create: 2025/7/30 10:39
 * @Version: 1.0
 */
@Service
public class GoodServiceImpl implements GoodService {
    @Autowired
    GoodMapper goodMapper;

    @Override
    public List<Good> showGood() {
        return goodMapper.showGood();
    }

    @Override
    public List<Good> sselGood(String name, Integer id,Integer num1,Integer num2) {
        PageHelper.startPage(num1,num2);
        return goodMapper.sselGood(name,id);
    }
}
